//ajax请求
function ajax({url,data,type='GET'},success,complete) {
    $.ajax({
        url,
        data,
        type,
        success: function(Result) {
            success(Result)
        },
        complete: function (XMLHttpRequest) {
            complete(XMLHttpRequest)
        },
        dataType: "json"
    })
}